package com.gyc.simple.common.vo;


import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;


/**
 * 用户对象
 * @author zhudeming
 *
 */
public class User {

	/**
	 * 用户ID
	 */
	private String iuId;
	
	private String iuLname;

	public User(String iuId, String iuLname) {
		this.iuId = iuId;
		this.iuLname = iuLname;
	}

	public String getIuId() {
		return iuId;
	}

	public void setIuId(String iuId) {
		this.iuId = iuId;
	}

	public String getIuLname() {
		return iuLname;
	}

	public void setIuLname(String iuLname) {
		this.iuLname = iuLname;
	}


	public User(Map<String, String> headers) {
		iuId = headers.get(iuId);
		iuLname = headers.get(iuLname);
	}
	

	/**
	 * 将user对象转换成为http对象头
	 * @return http头键值对
	 */
	public Map<String, String> toHttpHeaders() {
		Map<String, String> headers = new HashMap<>();
		headers.put(iuId,iuId);
		headers.put(iuLname,iuLname);
		return headers;
	}

}
